﻿package com.webbei.friendcenter.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.webbei.pojo.CommentCustomShow;
import com.webbei.pojo.Commission;
import com.webbei.pojo.Customcomment;
import com.webbei.pojo.Customer;
import com.webbei.pojo.Customs;
import com.webbei.pojo.Display;
import com.webbei.pojo.LoveCar;
import com.webbei.pojo.Messages;
import com.webbei.pojo.Orders;
import com.webbei.pojo.Userhot;

public interface MyFriendCenter {
		//��ݵ�ǰ�û������֣��ҵ����к��ѵ�����
		public List getAllFriendsNameByOwnerName(String ownName);
		//��ݵ�ǰ�û������֣��ҵ����к��ѵĸ���
		public int getMyFriendsCount(String string);
		//��ȡָ���û��Ļ���Ϣ 
		public Customer getCustomerByUserName(String uname);
		//��ȡָ���û����ƶ���Ϣ
		//��ȡ�ƶ��û��ķ�����Ϣ
		
		//ͨ��userName�õ�Userhot ����
		public Userhot getUserhotByUserName(String uname);
		//ͨ��/ͨ��userName�õ� customer�����ID
		public int getCustomerIDByUserName(String uname);
		//ͨ�� customer�����ID��ȡ���û�lovecar����Ϣ
		public List<LoveCar> getLoveCarsbyUserID(int user_id);
		//ͨ�� userName ��ȡ���û��µĶ��к���
		public List<Userhot> getAllFriendsByUserName(String uname);
		//ͨ��userName�ֶλ�ȡ���û����ƶ�δ���������
		public List<Orders> getAllcustomsByUserName(String uname);
		//ͨ��userName�ֶλ�ȡ���û����ƶ��ҷ��������
		public List<Orders> getAllcustomsShareByUserName(String uname);
		//��ȡ���û�������ָ�����ݵ�����
		public List<Customcomment> getAllCommentByUsername(String uname);
		//�����µ�����
		public List<Customcomment> getALLCommentISShareByUsername(String uname);
		public int InsertNewComment(Long customid, String string,
				String textContent, Date currentDate,int sourse);
		//��ȡ��ǰ�û������и��µĶ��ƣ���ν�Ķ������û��Ѿ��ɽ��Ķ�����
		public List getAllFriendsChangeByOwnName(String string);
		//��ȡ��ǰ�û������и��µķ���
		public List<Display> getAllFriendsChangeShareByOwnName(String uname);
		//����վ����
		public int insertMessageEachOther(Messages message);
		//��ȡ��ǰ�û����е�˽����Ϣ
		public List<Messages> getALLMessagesByUserName(String uname);
		//�����µĺ���
		public int addNewFriendByOwnUser(String ownUser, String addUser);
		//��ȡ�û��ƶ�����Ʒ��  �����һЩ��Ϣ---�ҵĽ��
		public List<Orders> getCostMoneyMessageByUserName(String uname);
		
		public List<CommentCustomShow> getCommentCustomShow(String uname);
		//new report
		public int insertNewReport(String reportName, String beReportName,
				String reprotContent, Date reportTime, int customId);
		public int UnameIsSessionNameFriend(String sessionInName, String uname);
		public int checkNameByUname(String uname);
		public List<Commission> getAllCommissionByUserName(String username);
		public boolean IsExistTheUserName(String uname);
		public List<Orders> getAllMyPartInShareByUserName(String uname);
		public List<Customcomment> getAllCommentPartInShareByUserName(
				String uname);
		public String getCustomUploadFileContentInCustoms(int customId);
		public int CustomUploadFileUpdateByCustomId(int customId,
				String filesFileName);
		public Customcomment getTheLastCommentByCustomId(Map m);
		public int getComemntCountByCustomId(Map m);
		public List<Userhot> getAllFriendsByUserNameOrderBycarBrind(
				String uname, String carBrind);
		public List<Customs> getAllNoPayCanShareCustomByUserName(String uname);
		public List<Customcomment> getALLCommentISNoPayCanShareByUsername(
				String uname);
		public String getCustomUploadFileContent(int customId);
		public int UploadFileContentInCustomsByCustomId(int customId,
				String string);
		public List<Customs> getAllMyPartInShareNoPayInCustomByUserName(
				String uname);
		public List<Customcomment> getTheCommentPartInShareNoPayByUserName(
				String uname);
		public List<Customs> getAllNotBuycustomsByUserName(String uname);
		public List<Customcomment> getAllNotBuyCustomCommentByUserName(
				String uname);
		public List<Customcomment> getAllCustomShareCommentByUserName(
				String uname);
		public List<Display> getAllFriendsChangeCustomByOwnName(String uname);
		public List<Display> getAllFriendsChangeCustomShareByOwnName(
				String uname);
		public List<Commission> getAllCommissionFromCustomByUserName(
				String uname);
		public List<Display> getAllPartShareInOrderByUserName(String uname);
		public List<Display> getAllPartShareInCustomByUserName(String uname);
		public List<CommentCustomShow> getCommentOrderShow(String uname);
		
		
		
		
}
